#!/bin/bash

echo "YOLOv8检测系统启动中..."
echo ""

python yolo_detect.py

if [ $? -ne 0 ]; then
    echo ""
    echo "程序运行出错，错误代码: $?"
    echo "请确保已安装所需的依赖包，可运行以下命令安装:"
    echo "pip install -r requirements.txt"
    echo ""
    read -p "按回车键退出..." 
fi 